/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.ekuma.epos.qkorder;

import cn.ekuma.epos.qkorder.orderbag.shared.JOrdersBagShared;
import com.openbravo.bean.erp.OrderLine;
import java.awt.Component;

/**
 *
 * @author Administrator
 */
public class JPanelOrderDefault extends JPanelOrder{
    JLinkContainerPanel containerPanel;
    @Override
    protected JOrdersBag getJOrdersBag() {
        return new JOrdersBagShared(m_App, this, dlSales, dlReceipts, dlCustomers, dlSystem);
    }

    @Override
    protected Component getSouthComponent() {
        containerPanel=new JLinkContainerPanel(this);
        return containerPanel;
    }

    @Override
    protected void resetSouthComponent() {
        containerPanel.resetComponent();
    }

    @Override
    public String getTitle() {
        return null;
    }

    @Override
    public void orderLineSelectedChanged(OrderLine line) {
        String productID=line.getProductID();
        containerPanel.fireProductChanged(productID,line);

    }

    @Override
    protected Component getSouthComponentToolBar() {
       return containerPanel.getToolbar();
    }

    @Override
    protected void printPartialTotals() {
        containerPanel.printPartialTotals();
    }
}
